import request from "@/utils/request"
//获取推荐标签列表
export const getReddProductsList = () => {
    return request({
        url: '/marketers/reddProducts/list',
        method: 'get'
    })
}
//获取推荐标签详细
export const getReddProducts = (reddProductsName: any) => {
    return request({
        url: `/marketers/reddProducts/${reddProductsName}`,
        method: 'get'
    })
}
//获取推荐标签列表
export const getReddProductsItemList = (params: any) => {
    return request({
        url: "/marketers/reddProducts/reddProductsList",
        method: 'get',
        params: params
    })
}
//新增推荐标签
export const addReddProducts = (data: any) => {
    return request({
        url: "/marketers/reddProducts/add",
        method: 'post',
        data: data
    })
}
//删除推荐标签
export const deleteReddProducts = (names: string[]) => {
    return request({
        url: `/marketers/reddProducts/${names}`,
        method: 'delete'
    })
}
//修改推荐标签
export const upReddProducts = (data: object) => {
    return request({
        url: "/marketers/reddProducts/up",
        method: 'put',
        data: data
    })
}
//移入商品
export const moveReddProducts = (data: object) => {
    return request({
        url: "/marketers/reddProducts/moveProduct",
        method: 'post',
        data: data
    })
}
// 移出商品
export const moveOutReddProducts = (reddProductsItemIds: number[]) => {
    return request({
        url: `/marketers/reddProducts/moveOut/${reddProductsItemIds}`,
        method: 'delete'
    })
}